package com.ourhealth.mapper;

import com.ourhealth.pojo.Order;
import org.apache.ibatis.annotations.Param;


public interface OrdersMapper {
    Integer isSameSetMealById(@Param("setmealId") String setmealId,@Param("memberId")Long memberId);

    Long findMemberIdByPhone(@Param("telephone") String telephone);

    void addOrder(@Param("memberId") Long memberId, @Param("orderDate") String orderDate,
                  @Param("orderType") String orderType, @Param("orderStatus") String orderStatus,
                  @Param("setmealId") String setmealId);

    Order findOrder(@Param("memberId") Long memberId, @Param("orderDate") String orderDate, @Param("setmealId") String setmealId);

    Order findById(@Param("id") Integer id);
}
